package com.bxmdm.ragdemo.dto;

import java.util.List;

public class SearchResult {
    private String query;
    private List<QAPair> results;
    private long timestamp;

    public SearchResult(String query, List<QAPair> results) {
        this.query = query;
        this.results = results;
        this.timestamp = System.currentTimeMillis();
    }

    // Getter 方法
    public String getQuery() {
        return query;
    }

    public List<QAPair> getResults() {
        return results;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public int getResultCount() {
        return results != null ? results.size() : 0;
    }
}